
all:
	cd src; cd lua-5.1.3; $(MAKE) linux
	cd src; cd lua-5.1.3; $(MAKE) install INSTALL_TOP=../../..
	cd src; cd luasocket-2.0.2; $(MAKE) LUAINC=-I../../../include
	cd src; cd luasocket-2.0.2; $(MAKE) install INSTALL_TOP_SHARE=../../../share INSTALL_TOP_LIB=../../../lib
	cd src; cd bufutil; $(MAKE)
	cd src; cd bufutil; $(MAKE) install
	cd src; cd Json; $(MAKE) install

clean:
	cd src; cd lua-5.1.3; $(MAKE) clean
	cd src; cd luasocket-2.0.2; $(MAKE) clean
	cd src; cd bufutil; $(MAKE) clean
	rm -rf bin  include  lib  man  share

